home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: Invalid Indirection???
- Date: 15 Mar 1996 18:14:42 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Mar15111443@qcd.lanl.gov>
- References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: sinan@cyberramp.net's message of 15 Mar 1996 01:31:31 GMT
-
- In article <4iah9k$r02@newshost.cyberramp.net>
- sinan@cyberramp.net (John Noland) writes:
-
- JN: In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
- JN: >
- JN: > tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
- JN: >
- JN: >/* This is where the compiler stops and says there's an invalid
- JN: >indirection for the "tmp" assignment */
- JN:
- JN: To multiply, you need whitespace. Check the lexical conventions for the
-
- Why?
-
- JN: evaluation of tokens for your compiler to be certain, but it looks like
- JN: you've confused him.
-
- Wasn't the original poster using a C compiler? Big mistake trying to
- compile a C program without one :-)
-
- Or are you under the misapprehension that a compiler can get confused
- by correct and trivial code and still call itself a C compiler? Or
- that it can have `lexical conventions for the evaluation of tokens'
- whatever that garbage is?
-
- JN: Also, your open/closed parentheses don't match in this statement.
- JN:
- JN: Your statement should like this (underscores indicate spaces):
- JN:
- JN: tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
-
- Spaces are often good for reasability, but in this context, they do
- not change the meaning of the code.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-